
		<div class="main">
			<div class="sectionA">
				<div class="aside">
					{{template "layout/leftmenu.html"}}
				</div>
				<div class="article">
					<!--新建简历 begin-->
					<div class="m-boxB m-boxB-height">
						<div class="boxB-hd">
							<ul class="m-tabA" style="float: left">
								<li><a href="javascript:;">在线简历</a></li>
							<!-- 
							<li  class="current"><a href="javascript:;">附件简历</a></li>
						-->
					</ul>

					<div class="right-box">
						<a  href="javascript:;" onclick="preView();" class="mar-r20"><i class="previ"></i>简历预览</a>

					</div>
				</div>
				<div class="boxB-bd">
					<form name="resumeForm" id="resumeForm" action="" method="post"  target="_blank" > 
						<input name="dosubmit" value="true" type="hidden"  id="resumeId"/>
						<input name="id" value="" type="hidden"  id="resumeId"/>
						<!--基本资料 begin-->
						<div class="buildBox buildBox-base">
							<div class="build_tit">
								<div class="tit_field">基本资料</div>
							</div>
							<div class="m-form-b">
								<div class="item">
									<span class="field">姓名</span>
									<input id="nameInput" class="ipt-txt" type="text" name="name" value="{{.resume.TrueName}}" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请填要填写真实姓名"  maxlength="20"/>
									<span class="form-tips">请一定要填写真实姓名</span>
								</div>
								<div class="item radio-item">
									<input class="ipt-txt" type="hidden" name="sex" id="sex" value="{{.resume.Gender}}"/>
									<span class="field">性别</span>
									<span class="m-radio {{if eq .resume.Gender 1}} m-radio-checked {{end}}" tag="1">男</span>
									<span class="m-radio {{if eq .resume.Gender 0}} m-radio-checked {{end}}"  tag="0">女</span>
								</div>
								<div class="item">
									<span class="field">年龄</span>
									<input  id="ageInput" class="ipt-txt" type="text"  name="age" value="{{.resume.Age}}" onfocus="formTagInit(this)" onblur="checkFormNumber(this)" tips="请填写年龄" style="ime-mode:Disabled;" onkeydown="onlyNumber();" maxlength="2"/>
									<span class="form-tips">岁</span>
								</div>
								<div class="item">
									<span class="field">经验</span>
									<input type="hidden" id="experienceInput" name="experience" value="{{.resume.Experience}}"  tips="请选择经验"/> 
									<div class="m-select">
										<div class="select-trig">
											<span class="select-is">
												请选择
											</span><i class="select-arrow"></i></div>
<script type="text/javascript">
$(function(){
	var items = $(".item").find(".select-pop")[0].children
	var experienceOption = $(".item").find("#experienceInput")[0].getAttribute("value")
	for (var i = 0; i < items.length; i++) {
		if(items[i].getAttribute("cvalue") == experienceOption){
			$(".item").find(".select-is")[0].innerHTML =  items[i].innerHTML
		}
	};
});
</script>
											<div class="select-pop">

												<div class="select-item" cvalue="1">在校生</div>

												<div class="select-item" cvalue="2">应届生</div>

												<div class="select-item" cvalue="3">1年</div>

												<div class="select-item" cvalue="4">2年</div>

												<div class="select-item" cvalue="5">3年</div>

												<div class="select-item" cvalue="6">4年</div>

												<div class="select-item" cvalue="7">5年</div>

												<div class="select-item" cvalue="8">6年</div>

												<div class="select-item" cvalue="9">7年</div>

												<div class="select-item" cvalue="10">8年</div>

												<div class="select-item" cvalue="11">9年</div>

												<div class="select-item" cvalue="12">10年</div>

												<div class="select-item" cvalue="13">11年</div>

											</div>
										</div>
										<span id="experienceTips" class="form-tips">请选择经验</span>
									</div>
									<div class="item">
										<span class="field">电话</span>
										<input  id="phoneInput" class="ipt-txt" type="text"  name="phone" value="{{.resume.Mobile}}" onfocus="formTagInit(this)" onblur="checkFormPhone(this)" tips="请填写常用手机号码" style="ime-mode:Disabled;" onkeydown="onlyNumber();"  maxlength="11"/>
										<span class="form-tips">请填写常用手机号码</span>
									</div>
									<div class="item">
										<span class="field">邮箱</span>
										<input id="emailInput"  class="ipt-txt" type="text" name="email" value="{{.resume.Email}}" onfocus="formTagInit(this)" onblur="checkFormEmail(this)" tips="请填写常用邮箱地址" maxlength="30"/>
										<span class="form-tips">请填写常用邮箱地址</span>
									</div>
									<div class="item avatar-item">
										<input type="hidden" name="headImage" id="headImageInput" value="0"/>
										<div class="upload" id="upload-ret-img">
											<div class="thumb"  onclick="openUploadHead()" style="cursor:pointer" >
												<img id="my_true_head_img" src="/static/images/resume_def_180x180.png" swidth="180" sheight="180"  height="180" width="180" />
												<div class="edit" style="background: gray">修改头像</div>
											</div>
											<!--  <br><a class="user_head png_bg" href="javascript:void(0);" onclick="openUploadHead()" title="编辑头像" >编辑头像</a> -->
										</div>
										<div id="tipsDiv"   style="display: none;color: red">请上传头像</div>
										<div class="upload_tips"><p>最佳尺寸：180*180px</p><p>大小：小于1M</p></div>
									</div>
								</div>
							</div>
							<!--基本资料 end-->
							<!--求职意向 begin-->
							<div class="buildBox">
								<div class="build_tit">
									<div class="tit_field">求职意向</div>
								</div>
								<div class="m-form-b">
								  
<!-- 								<div class="item">
									<span class="field">目标城市</span>
									<input id="cityInput" class="ipt-txt" type="text"  name="expectedCity"  value="" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="多个城市请以“,”隔开"  maxlength="20"/>
									<span class="form-tips">多个城市请以","隔开</span>
								</div> -->
							
							<div class="item">
								<span class="field">目标城市</span>
								<div class="m-select" style="width:150px;">
									<select id="s_province" name="expectedProvince" onchange="initcity();"  initValue="{{.resume.TargetProvince}}" style="width:140px;height:38px"  tips="请准确地选择省/直辖市"></select>
								</div>
								<div class="m-select" style="width:130px;">
									<select id="s_city" name="expectedCity" style="width:128px;height:38px"   tips="请准确地选择市">
										<option value="{{.resume.TargetCity}}">{{.resume.TargetCity}}</option>
									</select>
								</div>
								<span  id="pcTips" class="form-tips">请准确地选择目标城市</span>
							</div>

<script type="text/javascript">
$(function(){
	var items = $(".field-item").find(".pop-field-con")[0].children
	var expectedJobType = $(".field-item").find("#expectedJobInput")[0].getAttribute("value")
	for (var i = 0; i < items.length; i++) {
		if(items[i].getAttribute("id") == expectedJobType){
			// console.log(items[i].innerHTML)
			$(".field-item").find("#J-ipt-field")[0].setAttribute("value",items[i].innerHTML)
		}
	};
});
</script>
							<div class="item field-item">
								<span class="field">目标职位</span>
								<input id="expectedJobInput"  type="hidden"  name="expectedJob"  value="{{.resume.TargetPosition}}" tips="请选择目标职位，最多可选1个"/>
								<input id="J-ipt-field" class="ipt-txt" type="text" name="expectedJob"  value="abc"  readonly="readonly" maxlength="64" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请选择目标职位，最多可选1个" />
								<span id="expectedJobTips" class="form-tips">请选择目标职位，最多可选1个</span>
								<div class="pop-field" id="J-pop-field">
									<div class="pop-field-con">

										<a class="trig" href="javascript:;" id="1101">产品经理</a>

										<a class="trig" href="javascript:;" id="1102">产品助理</a>

										<a class="trig" href="javascript:;" id="1104">产品实习生</a>

										<a class="trig" href="javascript:;" id="1110">产品部经理</a>

										<a class="trig" href="javascript:;" id="1108">产品总监</a>

										<a class="trig" href="javascript:;" id="1111">用户体验师</a>

										<a class="trig" href="javascript:;" id="1112">交互设计师</a>

										<a class="trig" href="javascript:;" id="1301">产品运营</a>

									</div>
									<a class="pop-field-close" href="javascript:;"></a>
								</div>
							</div>
							<div class="item">
								<span class="field">期望月薪</span>
								<input  id="salaryInput"  class="ipt-txt" type="text"  name="expectedSalary"  value="{{.resume.ExpectedMonthlySalary}}" onfocus="formTagInit(this)" onblur="checkFormNumber(this)" tips="K   请填写期望月薪" style="ime-mode:Disabled;" onkeydown="onlyNumber();"   maxlength="2" />
								<span class="form-tips">K</span>
							</div>
						</div>
					</div>
					<!--求职意向 end-->
					<!--工作经历 begin-->
					
					<div class="buildBox" id="companyBoxDiv">
						<div class="build_tit" id="addCompanyDiv">
							<div class="tit_field">工作经历
								<span id="addCompanyTipsDiv" style="color: red;font-size: 14px;margin-left: 20px;display: none">请填写工作经历</span>
							</div>
							<input   type="hidden"  name="companyTagOldArray"  value="{{.companyTagArray}}" />
							<input id="companyTagArray"  type="hidden"  name="companyTagArray"  value="" />
							<a class="btn_blueB" href="javascript:addCompany();">添加<i class="add" >+</i></a>
						</div>
{{range $key,$val := .WkExperice}}
<div class="addbuild" companytagid="{{$key}}">
	<div class="m-form-b">
		<div class="item">
			<span class="field">公司名称</span>
			<input id="wkCompany{{$key}}" class="ipt-txt" type="text" value="{{.wkCompany}}" name="wkCompany{{$key}}" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请填写公司名称，例如“深圳聚力创想”">
			<span class="form-tips"></span>
		</div>
		<div class="item">
			<span class="field">职位名称</span>
			<input id="wkJob{{$key}}" class="ipt-txt" type="text" value="{{.wkJob}}" name="wkJob{{$key}}" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请填写职位，例如“产品经理”"><span class="form-tips"></span>
		</div>
		<div class="item">
			<span class="field">工作时间</span>
			<input style="float:left;width:105px" id="wkFrom{{$key}}" name="wkFrom{{$key}}" class="Wdate" onblur="checkFormTag(this)" onfocus="WdatePicker({dateFmt:'yyyyMM',minDate:'1980-11',maxDate:'#F{$dp.$D(\'wkEnd{{$key}}\')||\'%y-%M\'}'})" value="{{.wkFrom}}" readonly="readonly" tips="请选择起始时间">
			<span style="float:left;margin-top: 8px;">&nbsp;&nbsp;-&nbsp;&nbsp;</span>
			<input style="float:left;width:105px" id="wkEnd{{$key}}" name="wkEnd{{$key}}" class="Wdate" onblur="checkFormTag(this)" onfocus="WdatePicker({dateFmt:'yyyyMM',minDate:'#F{$dp.$D(\'wkFrom{{$key}}\')}',maxDate:'%y-%M'})" value="{{.wkEnd}}" readonly="readonly" tips="请选择结束时间">
			<span class="form-tips"></span>
		</div>
	</div>
	<i class="del" onclick="javascript:removeCompanyDiv(this)"></i>
</div>
{{end}}
					</div>


					<!--工作经历 end-->

					<!--range .教育经历 begin-->
					<div class="buildBox"  id="eduBoxDiv">
						<div class="build_tit" id="addEducationDiv">
							<div class="tit_field">教育经历
								<span id="addEducationTipsDiv" style="color: red;font-size: 14px;margin-left: 20px;display: none">请填写教育经历</span>
							</div>
							<input   type="hidden"  name="eduTagOldArray"  value="{{.EduIDSArray}}" />
							<input id="eduTagArray"  type="hidden"  name="eduTagArray"  value="" />
							<a class="btn_blueB" href="javascript:addEducation();">添加<i class="add" >+</i></a>
						</div>

{{range $key,$value := .EduExperice}}
<div class="addbuild" edutagid="{{$key}}">
	<div class="m-form-b">
		<div class="item">
			<span class="field">学校名称</span><input id="eduSchool{{$key}}" name="eduSchool{{$key}}" class="ipt-txt" type="text" value="{{.eduSchool}}" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请填写学校名，例如“北京大学”" maxlength="50"><span class="form-tips"></span>
		</div>
		<div class="item">
			<span class="field">学历</span><input type="hidden" id="eduDegree{{$key}}" name="eduDegree{{$key}}" value="{{.eduDegree}}" tips="请选择学历">
			<div class="m-select">
				<div class="select-trig">
					<span class="select-is">{{.eduDegree}}</span><i class="select-arrow"></i>
				</div>
				<div class="select-pop">
					<div class="select-item" cvalue="专科">
						专科
					</div>
					<div class="select-item" cvalue="本科">
						本科
					</div>
					<div class="select-item" cvalue="硕士">
						硕士
					</div>
					<div class="select-item" cvalue="博士">
						博士
					</div>
					<div class="select-item" cvalue="其他">
						其他
					</div>
				</div>
			</div>
			<span id="eduDegreeTips1972" class="form-tips">请选择学历</span>
		</div>
		<div class="item">
			<span class="field">专业</span><input id="eduMajor{{$key}}" name="eduMajor{{$key}}" class="ipt-txt" type="text" value="{{.eduMajor}}" onfocus="formTagInit(this)" onblur="checkFormTag(this)" tips="请填写专业名称，例如“软件工程”" maxlength="30"><span class="form-tips"></span>
		</div>
		<div class="item">
			<span class="field">起止时间</span><input style="float:left;width:105px" id="eduFrom{{$key}}" name="eduFrom{{$key}}" class="Wdate" onfocus="WdatePicker({dateFmt:&quot;yyyyMM&quot;,minDate:&quot;1980-11&quot;,maxDate:&quot;#F{$dp.$D('eduEnd{{$key}}')||'%y-%M'}&quot;})" value="{{.eduEnd}}" readonly>
			<span style="float:left;margin-top:8px">&nbsp;&nbsp;-&nbsp;&nbsp;</span><input style="float:left;width:105px" id="eduEnd{{$key}}" name="eduEnd{{$key}}" class="Wdate" onfocus="WdatePicker({dateFmt:&quot;yyyyMM&quot;,minDate:&quot;#F{$dp.$D('eduFrom{{$key}}')}&quot;})" value="{{.eduFrom}}" readonly><span class="form-tips"></span>
		</div>
		<div class="item" style="min-height:20px">
		</div>
	</div>
	<i class="del" onclick="removeEducationDiv(this)"></i>
</div>
{{end}}

					</div>
					
					<!--教育经历 end-->

					<!--项目经验 begin-->
					<div class="buildBox">
						<div class="build_tit">
							<div class="tit_field">项目经验</div>
						</div>
						<div class="m-form-b">
							<div class="item">
								<span class="field">经验介绍</span>
								<textarea  id="projectExperienceInput"  class="textarea" style="color:#989898;width:540px;height:270px;" name="projectExperience" onfocus="formTagInit(this)" onKeyUp="showStrLength(this)" onblur="checkFormTag(this),showStrLength(this)" maxlength="5000"  tips="请填写经验" > {{.resume.ProjectExperice}}</textarea>
								<span class="form-tips">请填写经验</span>
								<div class="textcount" ><span class="inputCount">0</span>/5000</div>
							</div>
						</div>
						<!-- 项目经验向来是用人部门最看重的部分，请认真填写。 -->
					</div>
					<!--项目经验 end-->

					<!--加分项目 begin-->
					<div class="buildBox">
						<div class="build_tit">
							<div class="tit_field">加分项目</div>
						</div>
						<div class="m-form-b">
							<div class="item">
								<span class="field" >原型作品</span>
								<input  id="masterpieceInput" maxlength="200" class="ipt-txt"  placeholder="http://" onfocus="formTagInit(this)" onblur="checkURL(this)"   maxlength="128" tips="" type="text" name="masterpiece"  value=""/>
								<span class="form-tips"></span>
							</div>
							<div class="item">
								<span class="field" >PRD作品</span>
								<input  id="prdUrlInput" maxlength="200" class="ipt-txt"  placeholder="http://" onfocus="formTagInit(this)" onblur="checkURL(this)"   maxlength="128" tips="" type="text" name="prdUrl"  value=""/>
								<span class="form-tips"></span>
							</div>
							<div class="item">
								<span class="field" >个人博客</span>
								<input id="homepageInput" maxlength="200" class="ipt-txt"  placeholder="http://" onfocus="formTagInit(this)" onblur="checkURL(this)"   maxlength="128" tips=""  type="text" name="homepage"  value="" />
								<span class="form-tips"></span>
							</div>
						</div>
					</div>
					<!--加分项目 end-->
				<script type="text/javascript">
				$(function(){
					var items = $(".item").find(".select-pop")[3].children
					var StatusOption = $(".item").find("#stateDiv")[0].getAttribute("value")
					for (var i = 0; i < items.length; i++) {
						if(items[i].getAttribute("cvalue") == StatusOption){
							$(".item").find(".select-is")[3].innerHTML =  items[i].innerHTML
						}
					}
				});
				</script>
					<!--隐私设置 begin-->
					<div class="buildBox buildBox-last">
						<div class="build_tit">
							<div class="tit_field">隐私设置</div>
						</div>
						<div class="m-form-b">
							<div class="item">
								<span class="field">简历状态</span>
								<input id="stateDiv" type="hidden" name="state" value="{{.resume.Status}}" tips="请选择简历状态"/> 
								<div class="m-select">
									<div class="select-trig">
										<span class="select-is">
											请选择
										</span><i class="select-arrow"></i></div>
										<div class="select-pop">
											
											<div class="select-item" cvalue="1">已离职，正在求职中</div>
											
											<div class="select-item" cvalue="2">观望中，有好机会就换</div>
											
											<div class="select-item" cvalue="3">勿扰，暂时不找工作</div>
											
										</div>
									</div>
									<span id="stateTips" class="form-tips">请选择简历状态</span>
								</div>
							</div>
						</div>
						<!--隐私设置 end-->
						<div class="buildBtn">
							<a class="btn_blueC" href="javascript:;" onclick="saveResume();">保存简历</a>
							<a class="btn_blueC" href="javascript:;" onclick="preView();" >预览简历</a>
						</div>
					</form>
				</div>
			</div>
			<!--新建简历 end-->
		</div>
	</div>
</div>



<script type="text/javascript" src="/static/js/ui/ui.js"></script>

<script>
	$(".radio-item .m-radio").click(function() {
		$(this).siblings().removeClass("m-radio-checked");
		$(this).addClass("m-radio-checked");
		$("#sex").val($(".m-radio-checked").attr("tag"));
	});

	$(function() {
	//初始化省
	creatprovince();
	//省赋值
	$("option[value='"+$("#s_province").attr("initValue")+"']","#s_province").attr("selected","selected");
	
	isResume = 1;//最多可选
	field_canLen = 1;//初始化最多可选
});
	
</script>